package b4;

public class Student {
    String sid;
    String sname;
    int sage;

//    public Student() {
//        System.out.println("Student constructor");
//    }
    public Student(String sid, String sname, int sage) {
        this.sid = sid;
        this.sname = sname;
        this.sage = sage;
    }

    public void showInfo() {
        System.out.println("学号：" + sid
                + ", 姓名：" + sname
                + ", 年龄：" + sage);
    }

    public void toLearn() {
        System.out.println(sname + "正在学习");
    }
}
